<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>H+移动工作平台 - 薪资查询</title>
  <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <link rel="stylesheet" href="../css/styles.css">
  <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
  <div class="device-container">
    <!-- 状态栏 -->
    <div class="status-bar">
      <div class="status-bar-left">
        <span class="time">9:41</span>
      </div>
      <div class="status-bar-right">
        <i class="fas fa-signal signal"></i>
        <i class="fas fa-wifi wifi"></i>
        <i class="fas fa-battery-full battery"></i>
      </div>
    </div>

    <!-- 导航栏 -->
    <div class="nav-bar">
      <div class="nav-left">
        <a href="finance.html"><i class="fas fa-arrow-left"></i></a>
      </div>
      <div class="nav-title">薪资查询</div>
      <div class="nav-right">
        <i class="fas fa-eye-slash"></i>
      </div>
    </div>

    <!-- 应用内容 -->
    <div class="app-content">
      <!-- 薪资卡片 -->
      <div class="bg-gradient-to-r from-blue-500 to-blue-600 rounded-lg mx-4 mt-4 p-4 text-white shadow-lg">
        <div class="flex justify-between items-center mb-4">
          <div class="text-sm opacity-80">当前薪资（2024年3月）</div>
          <div class="flex items-center">
            <i class="fas fa-lock text-xs mr-1"></i>
            <span class="text-xs">保密级别：高</span>
          </div>
        </div>
        <div class="text-2xl font-bold mb-4">¥18,560.00</div>
        <div class="grid grid-cols-3 gap-4 text-center">
          <div>
            <div class="text-xs opacity-80">基本工资</div>
            <div class="font-medium">¥12,000.00</div>
          </div>
          <div>
            <div class="text-xs opacity-80">绩效奖金</div>
            <div class="font-medium">¥5,200.00</div>
          </div>
          <div>
            <div class="text-xs opacity-80">其他补贴</div>
            <div class="font-medium">¥1,360.00</div>
          </div>
        </div>
        <div class="mt-4 pt-4 border-t border-white border-opacity-20 flex justify-between">
          <div>
            <div class="text-xs opacity-80">发放日期</div>
            <div class="font-medium">2024-04-15</div>
          </div>
          <button class="bg-white bg-opacity-20 px-3 py-1 rounded-full text-xs flex items-center">
            <i class="fas fa-download mr-1"></i>
            <span>下载工资条</span>
          </button>
        </div>
      </div>

      <!-- 薪资历史 -->
      <div class="card mx-4 mt-4">
        <div class="card-header">
          <span>薪资历史</span>
          <div class="relative">
            <select class="bg-gray-100 border-0 rounded-lg py-1 pl-3 pr-8 text-sm appearance-none">
              <option>2024年</option>
              <option>2023年</option>
              <option>2022年</option>
            </select>
            <div class="absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none">
              <i class="fas fa-chevron-down text-gray-400 text-xs"></i>
            </div>
          </div>
        </div>
        <div class="card-body p-0">
          <div class="list-item">
            <div>
              <div class="font-medium">2024年2月</div>
              <div class="text-xs text-gray-500">发放日期：2024-03-15</div>
            </div>
            <div class="text-right">
              <div class="font-medium">¥18,320.00</div>
              <a href="#" class="text-xs text-blue-500">查看详情</a>
            </div>
          </div>
          <div class="list-item">
            <div>
              <div class="font-medium">2024年1月</div>
              <div class="text-xs text-gray-500">发放日期：2024-02-15</div>
            </div>
            <div class="text-right">
              <div class="font-medium">¥18,120.00</div>
              <a href="#" class="text-xs text-blue-500">查看详情</a>
            </div>
          </div>
          <div class="list-item">
            <div>
              <div class="font-medium">2023年12月</div>
              <div class="text-xs text-gray-500">发放日期：2024-01-15</div>
            </div>
            <div class="text-right">
              <div class="font-medium">¥22,560.00</div>
              <a href="#" class="text-xs text-blue-500">查看详情</a>
            </div>
          </div>
          <div class="list-item">
            <div>
              <div class="font-medium">2023年11月</div>
              <div class="text-xs text-gray-500">发放日期：2023-12-15</div>
            </div>
            <div class="text-right">
              <div class="font-medium">¥17,980.00</div>
              <a href="#" class="text-xs text-blue-500">查看详情</a>
            </div>
          </div>
          <div class="list-item">
            <div>
              <div class="font-medium">2023年10月</div>
              <div class="text-xs text-gray-500">发放日期：2023-11-15</div>
            </div>
            <div class="text-right">
              <div class="font-medium">¥17,850.00</div>
              <a href="#" class="text-xs text-blue-500">查看详情</a>
            </div>
          </div>
        </div>
      </div>

      <!-- 薪资趋势 -->
      <div class="card mx-4 mt-4">
        <div class="card-header">
          <span>薪资趋势</span>
          <div class="flex">
            <div class="text-xs px-2 py-1 bg-blue-100 text-blue-500 rounded-full mr-1">6个月</div>
            <div class="text-xs px-2 py-1 bg-gray-100 text-gray-500 rounded-full">12个月</div>
          </div>
        </div>
        <div class="card-body">
          <canvas id="salaryChart" height="200"></canvas>
        </div>
      </div>

      <!-- 绩效考核 -->
      <div class="card mx-4 mt-4">
        <div class="card-header">
          <span>绩效考核</span>
          <div class="text-xs text-blue-500">查看详情</div>
        </div>
        <div class="card-body">
          <div class="flex justify-between items-center mb-4">
            <div>
              <div class="font-medium">2024年第一季度</div>
              <div class="text-xs text-gray-500">考核周期：2024-01-01 至 2024-03-31</div>
            </div>
            <div class="flex items-center">
              <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-2">
                <span class="text-green-500 font-bold">A</span>
              </div>
              <div class="text-xs text-gray-500">优秀</div>
            </div>
          </div>
          
          <div class="grid grid-cols-4 gap-2 mb-4">
            <div class="bg-gray-50 rounded-lg p-2 text-center">
              <div class="text-xs text-gray-500">工作质量</div>
              <div class="font-medium text-blue-500">95分</div>
            </div>
            <div class="bg-gray-50 rounded-lg p-2 text-center">
              <div class="text-xs text-gray-500">工作效率</div>
              <div class="font-medium text-blue-500">92分</div>
            </div>
            <div class="bg-gray-50 rounded-lg p-2 text-center">
              <div class="text-xs text-gray-500">团队协作</div>
              <div class="font-medium text-blue-500">90分</div>
            </div>
            <div class="bg-gray-50 rounded-lg p-2 text-center">
              <div class="text-xs text-gray-500">创新能力</div>
              <div class="font-medium text-blue-500">88分</div>
            </div>
          </div>
          
          <div class="text-xs text-gray-500">
            <div class="mb-1">评价摘要：</div>
            <div class="text-gray-600">工作认真负责，能够高质量完成各项任务，在团队中起到积极带头作用，建议在创新思维方面进一步提升。</div>
          </div>
        </div>
      </div>

      <!-- 历史绩效 -->
      <div class="card mx-4 mt-4 mb-4">
        <div class="card-header">
          <span>历史绩效</span>
        </div>
        <div class="card-body p-0">
          <div class="list-item">
            <div>
              <div class="font-medium">2023年第四季度</div>
              <div class="text-xs text-gray-500">2023-10-01 至 2023-12-31</div>
            </div>
            <div class="flex items-center">
              <div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center mr-2">
                <span class="text-green-500 font-bold text-sm">A</span>
              </div>
              <span class="text-xs text-gray-500">优秀</span>
            </div>
          </div>
          <div class="list-item">
            <div>
              <div class="font-medium">2023年第三季度</div>
              <div class="text-xs text-gray-500">2023-07-01 至 2023-09-30</div>
            </div>
            <div class="flex items-center">
              <div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center mr-2">
                <span class="text-green-500 font-bold text-sm">A</span>
              </div>
              <span class="text-xs text-gray-500">优秀</span>
            </div>
          </div>
          <div class="list-item">
            <div>
              <div class="font-medium">2023年第二季度</div>
              <div class="text-xs text-gray-500">2023-04-01 至 2023-06-30</div>
            </div>
            <div class="flex items-center">
              <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-2">
                <span class="text-blue-500 font-bold text-sm">B</span>
              </div>
              <span class="text-xs text-gray-500">良好</span>
            </div>
          </div>
          <div class="list-item">
            <div>
              <div class="font-medium">2023年第一季度</div>
              <div class="text-xs text-gray-500">2023-01-01 至 2023-03-31</div>
            </div>
            <div class="flex items-center">
              <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-2">
                <span class="text-blue-500 font-bold text-sm">B</span>
              </div>
              <span class="text-xs text-gray-500">良好</span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 底部标签栏 -->
    <div class="tab-bar">
      <a href="home.html" class="tab-item">
        <i class="fas fa-home tab-icon"></i>
        <span>首页</span>
      </a>
      <a href="asset.html" class="tab-item">
        <i class="fas fa-laptop tab-icon"></i>
        <span>资产</span>
      </a>
      <a href="finance.html" class="tab-item active">
        <i class="fas fa-wallet tab-icon"></i>
        <span>财务</span>
      </a>
      <a href="material.html" class="tab-item">
        <i class="fas fa-box tab-icon"></i>
        <span>物资</span>
      </a>
      <a href="profile.html" class="tab-item">
        <i class="fas fa-user tab-icon"></i>
        <span>我的</span>
      </a>
    </div>
  </div>

  <script>
    // 薪资趋势图
    const salaryCtx = document.getElementById('salaryChart').getContext('2d');
    const salaryChart = new Chart(salaryCtx, {
      type: 'line',
      data: {
        labels: ['10月', '11月', '12月', '1月', '2月', '3月'],
        datasets: [{
          label: '薪资（元）',
          data: [17850, 17980, 22560, 18120, 18320, 18560],
          backgroundColor: 'rgba(59, 130, 246, 0.1)',
          borderColor: 'rgba(59, 130, 246, 1)',
          borderWidth: 2,
          tension: 0.4,
          fill: true,
          pointBackgroundColor: 'rgba(59, 130, 246, 1)',
          pointRadius: 4
        }]
      },
      options: {
        responsive: true,
        maintainAspectRatio: false,
        plugins: {
          legend: {
            display: false
          },
          tooltip: {
            callbacks: {
              label: function(context) {
                return '¥' + context.raw.toLocaleString('zh-CN');
              }
            }
          }
        },
        scales: {
          y: {
            beginAtZero: false,
            grid: {
              display: true,
              color: 'rgba(0, 0, 0, 0.05)'
            },
            ticks: {
              callback: function(value) {
                return '¥' + value.toLocaleString('zh-CN');
              }
            }
          },
          x: {
            grid: {
              display: false
            }
          }
        }
      }
    });
  </script>
</body>
</html> 